<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 1.如果只有一个参数，()可以省略
        // 2.如果只有一个return,{}可以省略
        let arr = [12, 20, 14, 23, 5, 6, 10]
        arr.sort((n1, n2) => n1 - n2)
        console.log(arr)

        let show = () => {
            console.log(123)
        }

        show()

    </script>
</body>

</html>